package com.augmentum.login.util;

import com.augmentum.login.model.Exam;
import com.augmentum.login.model.Question;
import com.augmentum.login.model.User;


public enum SqlMethod {
    GET_BY_NAME(".getByName"),
    UPDATE_PASSWORD(".upatePassword"),
    SAVE(".save"),
    UPDATE(".update"),
    DELETE(".delete"),
    FIND_ALL(".findAll"),
    FIND_BY_PAEG(".findBYpage"),
    DELETE_BATH(".deleteBatch"),
    GET_BY_ID(".getById"),
    QUESTION_QUERY_BY_ID(".getQuestionById"),
    QUESTION_DELETE(".deleteQuestion"),
    QUESTION_DELETE_BATCH(".deleteBatchQuestions"),
    QUESTION_UPDATE_STATE(".updateState"),
    QUESTION_UPDATE(".updateQuestion"),
    QUESTION_CREATE(".createQuestion"),
    QUESTION_QUERY_LIST(".findQuestionList"),
    QUESTION_QUERY_LIST_BY_PAGE(".findQuestionsByPage"),
    QUESTION_COUNT(".getQuestionCount"),
    QUESTION_FIND_BY_ID(".findQuestionById"),
    QUESTION_COUNT_FOR_RANDOM(".getQuestionCountForRandom"),

    EXAM_CREATE_METHOD(".createExam"),
    EXAM_QUERY_LIST_BY_PAGE(".findExamsByPage"),
    DRAFT_QUERY_LIST_BY_PAGE(".findDraftByPage"),
    EXAM_DELETE_BATCH(".deleteBatchExams"),
    DRAFT_DELETE_BATCH(".deleteBatchDraft"),
    EXAM_QUERY_BY_Name(".getByName"),
    EXAM_SAVE_AS_DRAFT(".saveAsDraft"),
    EXAM_GET_COUNT(".getExamCount"),
    EXAM_UPDATE(".updateExam"),
    DELETE_QUESTION_STATE(".deleteQuestionForBatch"),
    GET_EXAM_QUESTION(".getExamQuestion"),
    EXAM_UPDATE_AS_EXAM(".updateAsExam"),
    UPDATE_STATE(".updateState"),
    SAVE_QUESTION_BATCH(".saveQuestionForBatch"),
    USER_QUERY_BY_NAME(".getUserByName"),
    DRAFT_COUNT(".getDraftCount"),


    USER_CLASS_NAME(User.class.getName()),
    EXAM_CLASS(Exam.class.getName()),
    QUESTION_NAME(Question.class.getName());

    private String value;

    private SqlMethod(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }
}
